local skel = fk.CreateSkill {
  name = "lb__hongyan",
}

Fk:loadTranslationTable {
  ["lb__hongyan"] = "轰炎",
  [":lb__hongyan"] = "当你使用火【杀】时，你可以对你造成1点火焰伤害并令之伤害+1；若你的体力上限为全场唯一最少，此牌不可被响应。",

  ["$lb__hongyan1"] = "进攻，执行。",
  ["$lb__hongyan2"] = "预备，起爆。",
  ["$lb__hongyan3"] = "我将，点燃星海！",
}

skel:addEffect(fk.CardUsing, {
  anim_type = "offensive",
  audio_index = {1, 2},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and target == player and data.card.name == "fire__slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:damage {
      from = player,
      to = player,
      damage = 1,
      damageType = fk.FireDamage,
      skillName = skel.name,
    }
    data.additionalDamage = (data.additionalDamage or 0) + 1
    if not table.find(room:getOtherPlayers(player), function(p)
          return p.maxHp <= player.maxHp
        end) then
      data.disresponsiveList = room:getAllPlayers()
      player:broadcastSkillInvoke(skel.name, 3)
    end
  end,
})

return skel
